package cn.samler.account_manager.model.req;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;

@Data
public class AccountAddRequest {
    @NotNull(message = "参数错误")
    private String username;

    @NotNull(message = "参数错误")
    private String password;

    @NotNull(message = "参数错误")
    private Boolean isIdentity;

    @NotNull(message = "参数错误")
    @PositiveOrZero(message = "执行天数有误")
    private Integer execDate;

    @NotNull(message = "参数错误")
    @PositiveOrZero(message = "每天执行次数填写有误")
    private Integer execTimesPerDay;
}
